import request from '@/utils/request'

// 查询客服调度列表
export function listAppDispatch(query) {
  return request({
    url: '/system/appDispatch/list',
    method: 'get',
    params: query
  })
}

// 查询客服调度详细
export function getAppDispatch(id) {
  return request({
    url: '/system/appDispatch/' + id,
    method: 'get'
  })
}

// 新增客服调度
export function addAppDispatch(data) {
  return request({
    url: '/system/appDispatch',
    method: 'post',
    data: data
  })
}

// 修改客服调度
export function updateAppDispatch(data) {
  return request({
    url: '/system/appDispatch',
    method: 'put',
    data: data
  })
}

// 删除客服调度
export function delAppDispatch(id) {
  return request({
    url: '/system/appDispatch/' + id,
    method: 'delete'
  })
}

// 导出客服调度
export function exportAppDispatch(query) {
  return request({
    url: '/system/appDispatch/export',
    method: 'get',
    params: query
  })
}